package com.cdyx.outsideprescription.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdyx.outsideprescription.dto.Icd_10Dto;
import com.cdyx.outsideprescription.dto.YPxxDto;
import com.cdyx.outsideprescription.entity.TbDicCf;
import com.cdyx.outsideprescription.mapper.TbDicCfMapper;
import com.cdyx.outsideprescription.service.ITbDicCfService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jiang dongqiong
 * @since 2021-12-17
 */
@Service("dicCfServiceImpl")
public class TbDicCfServiceImpl extends ServiceImpl<TbDicCfMapper, TbDicCf> implements ITbDicCfService {
        @Autowired
        public TbDicCfMapper dicCfMapper;
    @Override
    public IPage<Icd_10Dto> getIcd10(Page<Icd_10Dto> page, QueryWrapper<Icd_10Dto> queryWrapper) {
       return dicCfMapper.selectIcd10(page, queryWrapper);
    }

    @Override
    public IPage<YPxxDto> selectYPxx(Page<YPxxDto> page, QueryWrapper<YPxxDto> queryWrapper, String type) {
        return dicCfMapper.selectYPxx(page,queryWrapper,type);
    }

    @Override
    public List<Map<String, Object>> getYPbz() {
        return dicCfMapper.selectYpbz();
    }

    @Override
    public List<Map<String, Object>> getCfBZ() {
        return dicCfMapper.selectCfbz();
    }

    @Override
    public List<Map<String, String>> getYYtj() {
        return dicCfMapper.selectYYtj();
    }

    @Override
    public List<Map<String, String>> getypYC() {
        return dicCfMapper.selectYPyc();
    }

    @Override
    public List<Map<String, String>> getZcyxx() {
        return dicCfMapper.selectZcy();
    }
}
